package lab02.test07;

public class Test07 {
    public static void main(String[] args) {

        //Person类输出

        Person person = new Person();
        person.name = "张三";
        person.idCard = "51011962790009";
        person.age = 19;

        System.out.println(person.toString());

        //Student类输出

        Student student = new Student();
        student.name = "诚意";
        student.idCard = "13343458479093";
        student.age = 19;
        student.sno = "23434";
        student.school = "四川旅游学院";

        System.out.println(student.toString());
    }
}
